/*
 * set.hpp
 *
 *  Created on: 19-05-2013
 *      Author: Kopik
 */

#ifndef CATEGORY_HPP_
#define CATEGORY_HPP_

#include <QObject>

class Category : public QObject
{
	Q_OBJECT

	Q_PROPERTY(int categoryId READ categoryId)
	Q_PROPERTY(QString name READ name WRITE setName)
	Q_PROPERTY(QString desc READ desc WRITE setDesc)
public:
	Category(const int id, const QString &name, const QString &desc, QObject *parent = 0);

	int categoryId() const;
	QString name() const;
	QString desc() const;

	void setName(const QString &newName);
	void setDesc(const QString &newDesc);

private:
	int m_id;
	QString m_name;
	QString m_desc;
};



#endif /* SET_HPP_ */
